package controllers

import "github.com/astaxie/beego"

type IndexController struct {
	beego.Controller
}

func (this *IndexController) Get() {
	user := this.GetSession("user")
	if user == nil {
		this.Redirect("/login", 302)
	}
	this.Data["user"] = user
	this.TplName = "index.html"
}
